import { DIC_ANT } from '@/util/DIC_ANT'
import { DicUrl } from '@/views/system/dic/dicApi'
import i18n from '@/lang' // Internationalization


export default {
    // maxHeight: 400,
    index: true,
    border: true,
    expand: false,
    excelBtn:true,
    // title:i18n.t("system.user.title"),//表格的标题
    title:i18n.t("ant.AntOrder.title"),//表格的标题
    menuWidth:130,
    stripe: false,
    selection: true,
    // customClass: '',自定义弹出框样式
    menuBtn: true,
    // menuWidth: 100,
    menuAlign: 'center',
    align: 'center',
    searchSize: 'small',
    menuType: 'menu',
    // defaultSort: {
    //   prop: 'name',
    //   order: 'descending'
    // },
    dicData: DIC_ANT,
    column: [
    {
        label: i18n.t("ant.AntOrder.orderNo"),
        prop: "orderNo",
        width: 120,
        rules: [
            { required: true, message: i18n.t("${commHandle.tipInput}") + i18n.t("ant.AntOrder.orderNo"), trigger: "blur" },
        ],
    },
    {
        label: i18n.t("ant.AntOrder.goodsId"),
        prop: "goodsId",
        width: 120,
        rules: [
            { required: true, message: i18n.t("${commHandle.tipInput}") + i18n.t("ant.AntOrder.goodsId"), trigger: "blur" },
        ],
    },
    {
        label: i18n.t("ant.AntOrder.status"),
        prop: "status",
        type: 'select',
        valueDefault: 1,
        dicData: DIC_ANT.ANT_STATUS,
        search: true,
        width: 120,
        rules: [
            { required: true, message: i18n.t("${commHandle.tipInput}") + i18n.t("ant.AntOrder.status"), trigger: "blur" },
        ],
    },
    {
        label: i18n.t("ant.AntOrder.num"),
        prop: "num",
        width: 120,
        rules: [
            { required: true, message: i18n.t("${commHandle.tipInput}") + i18n.t("ant.AntOrder.num"), trigger: "blur" },
        ],
    },
    {
        label: i18n.t("ant.AntOrder.price"),
        prop: "price",
        width: 120,
        rules: [
            { required: true, message: i18n.t("${commHandle.tipInput}") + i18n.t("ant.AntOrder.price"), trigger: "blur" },
        ],
    },
    {
        label: i18n.t("ant.AntOrder.rawPrice"),
        prop: "rawPrice",
        width: 120,
        rules: [
            { required: true, message: i18n.t("${commHandle.tipInput}") + i18n.t("ant.AntOrder.rawPrice"), trigger: "blur" },
        ],
    },
    ]
};